
<template>
    <rx-layout>
        <div slot="left" showButton="true" width="200">
            {{i18n('form.left', '左边')}}
        </div>
        <div slot="center">
        </div>
        <div slot="right" showButton="true" width="200">
            {{i18n('form.right', '右边')}}
        </div>
    </rx-layout>
</template>
<script>
    import BpmFormTemplateApi from '@/api/bpm/core/bpmFormTemplate'
    import {RxDialog,BaseFormModel} from '@lowcode/jpaas-common-lib';


    export default {
        name: 'BpmFormTemplateEdit',
        mixins:[BaseFormModel],
        components: {
            RxDialog,
        },
        data(){
            return {
                /**
                 * 子表列表，以及表格属性
                 */
                subTable:{
        },
            rules: {
                boAlias: [{ required:false,message:this.$ti18('rxDecorator.input','请输入')+"BO_ALIAS_" , trigger: 'change' }],
                template: [{ required:false,message:this.$ti18('rxDecorator.input','请输入')+"TEMPLATE_", trigger: 'change' }],
            }
        }

        },
        methods: {
            i18n(name, text, key) {
                return this.$ti18(name, text, "bpmFormTemplate", key);
            },
            get(id){
                return BpmFormTemplateApi.get(id);
            },

            save(){
                return BpmFormTemplateApi.save(this.mdl);
            },

        }
    }
</script>
<style>
    .relick a{
        margin-right: 10px;
    }

</style>
